//var p = {name: "huoty", age: 21};

//function Person(name, age) {
    //return {name: name, age: age};
//}

//var p = new Object();
//p.name = "huoty";
//p.age = 21;

var Person = function (name, age) {
    this.name = name;
    this.age = age;
};

var p = new Person("huoty", 21);
console.dir(p);
